<?php
namespace app\audit_api\controller;

use think\Controller;
use think\Request;
use app\audit_api\service\Subscribe as SubscribeService;
/**
 * Class Subscribe
 * @package app\audit_api\controller
 * @description 向钉钉添加新的回调信息
 */
class Subscribe extends Controller
{
    protected $SubscribeService;

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->SubscribeService = new SubscribeService();
    }

    /**
     * @auther zlq
     * @create_time 2020/6/6 10:42
     * @description 添加审批订阅
     */
    public function addAuditCallBack()
    {
        $sub_tag = input('tags');
        $tags = trim($sub_tag,',');
        $param = [];
        if (!$sub_tag) {
            $param['tags'] = $tags;
        }
        $res = $this->SubscribeService->addAuditCallBack($param);
    }
}